function initProgressBarCtl(ctlId, width, value, isEditable) {
    var tag = false, dx = 0, left = 0, bgleft = 0;
    if (isEditable) {
        $('.progress_ctl_btn').mousedown(function (e) {
            dx = e.pageX - left;
            tag = true;
        });
        $(document).mouseup(function (e) {
            tag = false;
        });
        $('.progress_ctl_btn').mousemove(function (e) {//鼠标移动
            if (tag) {
                left = e.pageX - dx;
                if (left <= 0) {
                    left = 0;
                } else if (left > width) {
                    left = width;
                }
                $(this).css('left', left);
                $('#' + ctlId + '_wrap .progress_ctl_bar').animate({width: left}, 1);
                $('#' + ctlId + '_wrap .progress_text').html(parseInt((left / width) * 100) + '%');
                $(fo(ctlId)).val(parseInt(left / width * 100));
            }
        });
        $('.progress_ctl_bg').click(function (e) {//鼠标点击
            if (!tag) {
                bgleft = $(this).offset().left;
                left = e.pageX - bgleft;
                if (left <= 0) {
                    left = 0;
                } else if (left > width) {
                    left = width;
                }
                $('#' + ctlId + '_wrap .progress_ctl_btn').css('left', left);
                $('#' + ctlId + '_wrap .progress_ctl_bar').animate({width: left}, width);//
                $('#' + ctlId + '_wrap .progress_text').html(parseInt((left / width) * 100) + '%');
                console.log('left', left);
                console.log('fo(' + ctlId + ')', fo(ctlId));
                $(fo(ctlId)).val(parseInt(left / width * 100));
                console.log('fo(' + ctlId + ').val', fo(ctlId).value);
            }
        });
    }

    var left = width * value / 100;
    $('#' + ctlId + '_wrap .progress_ctl_btn').css('left', left);
    $('#' + ctlId + '_wrap .progress_ctl_bar').animate({width: left}, width);//
    $('#' + ctlId + '_wrap .progress_text').html(value + '%');

    $('#' + ctlId + '_wrap .progress_ctl').width(width);
    $('#' + ctlId + '_wrap .progress_ctl_bg').width(width);
}